
#include "SOIL2.h"
#include "fxcc/core/AssertManager.h"

int main()
{
    ztclog::pushFunction([](const ztclog::Line &l)
                         { std::cout << l.m_Text << std::endl; });
   
    auto &am = fxcc::AssertManager::Inst();
    int width, height, channels;
    // std::string imagePath = am.GetFile("kloppenheim_06_puresky_4k.hdr");
    std::string imagePath = am.GetFile("Model/grass.dds");

    // SOIL_create_OGL_single_cubemap;
    // SOIL_create_OGL_texture;
    SOIL_FLAG_MIPMAPS;
    SOIL_FLAG_DDS_LOAD_DIRECT;
    unsigned char *image = SOIL_load_image(imagePath.c_str(), &width, &height, &channels, SOIL_LOAD_RGBA);
    if (image)
    {
        ztclog::info("Has Image data %d %d %d", width, height, channels);
    };
    SOIL_free_image_data(image);
};